#include "CASE.h"

OnStateChange(base)
{
    int32_t addr;
    uint8_t tmpdata[2] = {0, 0};
    caseParam_t addr_param;
    addr_param.type = Number;
    addr_param.param = &addr;
    CASE_readParam(data, 1, &addr_param);
    tmpdata[1] = val;
    DwinWrite(addr, 2, tmpdata);
    return;
}